# guest2host.proto编译
PROTOBUF_GENERATE_CPP(PROTO_GUEST2HOST_SRC PROTO_GUEST2HOST_HEADER guest2host.proto)
set(PROTO_GUEST2HOST_SRC ${PROTO_GUEST2HOST_SRC} PARENT_SCOPE)
set(PROTO_GUEST2HOST_HEADER ${PROTO_GUEST2HOST_HEADER} PARENT_SCOPE)

add_custom_target(protobuf_guest2host DEPENDS ${PROTO_GUEST2HOST_SRC})

# host2guest.proto编译
PROTOBUF_GENERATE_CPP(PROTO_HOST2GUEST_SRC PROTO_HOST2GUEST_HEADER host2guest.proto)
set(PROTO_HOST2GUEST_SRC ${PROTO_HOST2GUEST_SRC} PARENT_SCOPE)
set(PROTO_HOST2GUEST_HEADER ${PROTO_HOST2GUEST_HEADER} PARENT_SCOPE)

add_custom_target(protobuf_host2guest DEPENDS ${PROTO_HOST2GUEST_SRC})